///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Apr 16 2008)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#include "ProjectUI.h"

#include "bitmaps/new.xpm"
#include "bitmaps/open.xpm"
#include "bitmaps/save.xpm"

///////////////////////////////////////////////////////////////////////////

RcMainFrameUI::RcMainFrameUI( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )
{
	this->SetSizeHints( wxDefaultSize, wxDefaultSize );
	
	m_menuBar = new wxMenuBar( 0 );
	m_menuFile = new wxMenu();
	wxMenuItem* m_fileNew;
	m_fileNew = new wxMenuItem( m_menuFile, wxID_ANY, wxString( wxT("&New") ) + wxT('\t') + wxT("Ctrl+N"), wxEmptyString, wxITEM_NORMAL );
	#ifdef __WXMSW__
	m_fileNew->SetBitmaps( wxBitmap( new_xpm ) );
	#elif defined( __WXGTK__ )
	m_fileNew->SetBitmap( wxBitmap( new_xpm ) );
	#endif
	m_menuFile->Append( m_fileNew );
	
	wxMenuItem* m_fileOpen;
	m_fileOpen = new wxMenuItem( m_menuFile, wxID_ANY, wxString( wxT("&Open") ) + wxT('\t') + wxT("Ctrl+O"), wxEmptyString, wxITEM_NORMAL );
	#ifdef __WXMSW__
	m_fileOpen->SetBitmaps( wxBitmap( open_xpm ) );
	#elif defined( __WXGTK__ )
	m_fileOpen->SetBitmap( wxBitmap( open_xpm ) );
	#endif
	m_menuFile->Append( m_fileOpen );
	
	m_menuFile->AppendSeparator();
	
	wxMenuItem* m_fileSave;
	m_fileSave = new wxMenuItem( m_menuFile, wxID_ANY, wxString( wxT("&Save") ) + wxT('\t') + wxT("Ctrl+S"), wxEmptyString, wxITEM_NORMAL );
	#ifdef __WXMSW__
	m_fileSave->SetBitmaps( wxBitmap( save_xpm ) );
	#elif defined( __WXGTK__ )
	m_fileSave->SetBitmap( wxBitmap( save_xpm ) );
	#endif
	m_menuFile->Append( m_fileSave );
	
	wxMenuItem* m_fileSaveAs;
	m_fileSaveAs = new wxMenuItem( m_menuFile, wxID_ANY, wxString( wxT("Save &As") ) + wxT('\t') + wxT("Ctrl+Shift+S"), wxEmptyString, wxITEM_NORMAL );
	m_menuFile->Append( m_fileSaveAs );
	
	m_menuFile->AppendSeparator();
	
	wxMenuItem* m_fileExit;
	m_fileExit = new wxMenuItem( m_menuFile, ID_FILE_EXIT, wxString( wxT("E&xit") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuFile->Append( m_fileExit );
	
	m_menuBar->Append( m_menuFile, wxT("&File") );
	
	m_helpMenu = new wxMenu();
	wxMenuItem* m_helpAbout;
	m_helpAbout = new wxMenuItem( m_helpMenu, ID_HELP_ABOUT, wxString( wxT("About") ) , wxEmptyString, wxITEM_NORMAL );
	m_helpMenu->Append( m_helpAbout );
	
	m_menuBar->Append( m_helpMenu, wxT("&Help") );
	
	this->SetMenuBar( m_menuBar );
	
	
	// Connect Events
	this->Connect( m_fileExit->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( RcMainFrameUI::OnFileExit ) );
	this->Connect( m_helpAbout->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( RcMainFrameUI::OnHelpAbout ) );
}

RcMainFrameUI::~RcMainFrameUI()
{
	// Disconnect Events
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( RcMainFrameUI::OnFileExit ) );
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( RcMainFrameUI::OnHelpAbout ) );
}
